import curses, cmd, camelot

terminal = curses.initscr()
curses.noecho()
curses.cbreak()
terminal.keypad(1)

pad = curses.newpad(100, 100)

for x in range(0, 100):
    for y in range(0, 100):
        try:
            pad.addch(y, x, ord('a') + (x*x+y*y)%26)
        except curses.error:
            pass
 
pad.refresh( 0, 0, 5, 5, 20, 75)    
    
#terminal.nocbreak(1)
#curses.echo()
#curses.endwin()
